//
//  OMGGetMoreTableViewCell.m
//  A_project2.0
//
//  Created by Tiny on 16/3/14.
//  Copyright © 2016年 七平. All rights reserved.
//

#import "OMGGetMoreTableViewCell.h"
#import "GetMoreModel.h"
@implementation OMGGetMoreTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.photo = [[UIImageView alloc]init];
        [self.contentView addSubview:_photo];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    WS(ws);
    [_photo mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(ws.mas_left).offset(10);
        make.right.equalTo(ws.mas_right).offset(-10);
        make.top.equalTo(ws.mas_top).offset(5);
        make.bottom.equalTo(ws.mas_bottom).offset(-5);
    }];
}
- (void)setModel:(GetMoreModel *)model
{
    _model = model;
    [_photo sd_setImageWithURL:[NSURL URLWithString:model.photo]placeholderImage:[UIImage imageNamed:@"zhanweitu.jpg"]];

}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
